package com.belazy.library.util.exception;

/**
 * <p>系统断言异常类</p>
 * @auhor chupeng.tang
 * @datetime 2023/5/19 18:16
 * @param: null
 * @return {@link null}
 **/
public class AssertException extends RuntimeException {

    private static final long serialVersionUID = -2063282112481856096L;

    /** 错误码 */
    private String errorCode;

    public AssertException(){}

    public AssertException(String message){
        super(message);
    }

    public AssertException(Throwable e){
        super(e);
    }

    public AssertException(String message, Throwable e){
        super(message,e);
    }

    public AssertException(String message, String errorCode){
        super(message);
        this.errorCode = errorCode;
    }

    public AssertException(String message, String errorCode, Throwable e){
        super(message,e);
        this.errorCode = errorCode;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
}
